package cn.hxzy.service;

import cn.hxzy.domain.Course;
import cn.hxzy.domain.vo.ChpSecListVo;
import cn.hxzy.domain.vo.CourseListVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author niuyi
 * @since 2024-06-22
 */
public interface CourseService extends IService<Course> {

    List<Course> selectAll(Integer schoolId);

    List<CourseListVo> getCourseList(int schoolId);

    //根据专业方向查询课程列表
    List<CourseListVo> getCourseListByDirectionId(Integer dId,Integer pId,String courseName);

    //根据课程标题模糊查课程列表
    List<CourseListVo> getCourseListByName(String courseName);


    Course getCourseById(int courseId);

    int saveCourse(Course course);
    int updateCourse(Course course);

//    List<Integer> getCourseIdByClassId(Integer classId);

    List<ChpSecListVo> ChpSecListVo(Integer courseId);
}
